<?php
$host = array('dev.hihigirl.com');
$hh = strtolower($_SERVER['HTTP_HOST']);
if(!in_array($hh, $host)) {
	$host = $host[0];
	// $uri = mb_convert_encoding($_SERVER['REQUEST_URI'], 'utf-8', 'GBK');
	$uri = urldecode($_SERVER['REQUEST_URI']);
	$uri = preg_replace('/\/index\.php\//is', "/", $uri);
	header("Location: http://" . $host . $uri);
	exit();
}
require_once '../app/config/system.php';
define('_STATIC_HTTP', 'http://dev.hihigirl.com/_static');
@ini_set('session.save_path', '../var/tmp');
$config['view']['template'] = 'www';
$config['front']['base_controller'] = 'controller/www';
$config['route'] = 'route/www.php';
$config['front']['throw_exceptions'] = false;
$config['session']['cache_expire'] = 10;
require_once '../app/web.php';
